package ishaportalserver.apps.regstatus;

import ishaportalserver.shared.apps.regstatus.RegStatusProp;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;


public class FakeRegStatusRepository implements IRegStatusRepository {

	@Override
	public List<RegStatusProp> getAll() {
		
		ArrayList<RegStatusProp> all = new ArrayList<RegStatusProp>();
		
		RegStatusProp prop = new RegStatusProp();
		prop.id = 1;
		prop.eventName = "Shambhavi";
		prop.location = "Singapore";
		prop.startDate = new GregorianCalendar(2013, Calendar.APRIL, 6).getTime();
		prop.endDate = new GregorianCalendar(2013, Calendar.APRIL, 7).getTime();
		prop.numRegistrations = 45;
		prop.show = true;
		
		all.add(prop);
		
		prop = new RegStatusProp();
		
		prop.id = 2;
		prop.eventName = "Hata Yoga";
		prop.location = "Singapore";
		prop.startDate = new GregorianCalendar(2013, Calendar.APRIL, 6).getTime();
		prop.endDate = new GregorianCalendar(2013, Calendar.APRIL, 7).getTime();
		prop.numRegistrations = 35;
		prop.show = true;
		
		all.add(prop);
				
		return all;
	}

}
